package day07;

public class OverloadDemo {
    public static void main(String[] args) {
      /*  say();
        say("xw");
        say(18);
        say(18,"xw");
        say("xw",18);
       // say(3.14);//编译错误，没有double参与的*/
    }
    /*public static void say(){ }
    public static void  say(String name){}
    public static void say(int age){}
    public static void  say(String name,int age){}
    public static void  say(int age, String name){}
   // public static double say(String name, double num){}编译错误，重载与返回值类型无关
    //public static int say(String add){}编译错误，重载与参数名无关*/


    public static void say(){}
    public static void say(String name){ }
    public static void say(int leg){}
    public static void say(String name,int leg){}
    public static void say(int leg,String name){}

}
